/*******************************************************
 **
 ** Provided by ���ɽ�, Fuzhou University
 ** Email: mileden@126.com
 ** Homepage: http://sonew.512j.com/
 ** This product is free for use.
 ** last changed 2009-2-14
 ** 使用他人模板 
 *******************************************************/

#ifndef XvidCodec_H
#define XvidCodec_H
#include "include.h"


class XvidCodec
{
public:
    XvidCodec(int w, int h);
    ~XvidCodec();
    bool hasEncoder() const { return encoderAvailable; }
    int encode(unsigned char* image, unsigned char* bitstream);

private:
    int enc_init();
    int enc_stop();

    int width;
    int height;
    bool encoderAvailable;
    void* enc_handle;
};

#endif // XvidCodec_H
